package com.dhj.yygh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

// 因为需要使用到 common 模块中的内容，所以将包扫描的范围修改为 com.dhj (因为 com.dhj 是二者重合的包路径)
@SpringBootApplication(scanBasePackages = "com.dhj")
@EnableDiscoveryClient // 开启服务注册发现
@EnableFeignClients(basePackages = "com.dhj") // 指定扫描的路径
public class ServiceHospitalApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospitalApplication.class, args);
    }
}
